package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.AddressMapper;
import com.hd.pzhwlxt.pojo.Address;
import com.hd.pzhwlxt.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
@create: 2022-09-21 8:55
@author: 怀念天空
@Description: 
*/

@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements AddressService{

    @Autowired
    private AddressMapper addressMapper;
    @Override
    public Page<Address> getAllAddressPage(Integer pageNum, Integer pageSize) {
        return addressMapper.getAllAddressPage(new Page<>(pageNum, pageSize));
    }

    @Override
    public List<Address> getAllAddress() {
        return addressMapper.getAllAddress();
    }
}
